exports.routes = function (map) {
    map.resources('votes');
	map.resources('replymessages');
    map.resources('users');
    map.resources('groupusers');
    map.resources('groups');
    map.resources('inboxes');
    map.resources('ifolloweds');
    map.resources('followedmes');
    map.resources('tests');
    map.resources('posts');
    map.resources('blogs');
	map.post('fileupload','fileupload#upload');
	map.get('fileupload/','fileupload#upload');

    // Generic routes. Add all your routes below this line
    // feel free to remove generic routes
    map.all(':controller/:action');
    map.all(':controller/:action/:id');
	map.get('cap', 'posts#cap');
	
	/*map.resources('blogs', function (blog) {
		blog.get('copysend', 'blogs#copysend');
	});*/
};